﻿Public MustInherit Class BasePageMappingsController


    Protected Shared Function FormatUrl(ByVal silverlightUrl As String, ByVal mappings As IEnumerable(Of String)) As String

        Dim output As String = String.Empty

        If mappings IsNot Nothing AndAlso Not String.IsNullOrEmpty(mappings.FirstOrDefault) Then

            Dim baseUri = New Uri(silverlightUrl)

            output = String.Format("{0}{1}{2}{3}", _
                                   baseUri.Scheme, _
                                   Uri.SchemeDelimiter, _
                                   baseUri.Authority, _
                                   mappings.FirstOrDefault)

        End If

        Return output

    End Function

    Public MustOverride Function GetHtmlUrl(ByVal silverlightUrl As String) As String
    Public MustOverride Function GetSilverlightUrl(ByVal htmlUrl As String) As String

    Public MustOverride Function GetHtmlSiteMapEntries() As List(Of PageMappingInfo)



End Class
